package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgGroup;
import com.ygqh.baby.po.YgGroupExample;

public interface YgGroupMapper {
	int countByExample(YgGroupExample example);

	int deleteByExample(YgGroupExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgGroup record);

	int insertSelective(YgGroup record);

	List<YgGroup> selectByExample(YgGroupExample example);

	YgGroup selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgGroup record, @Param("example") YgGroupExample example);

	int updateByExample(@Param("record") YgGroup record, @Param("example") YgGroupExample example);

	int updateByPrimaryKeySelective(YgGroup record);

	int updateByPrimaryKey(YgGroup record);

	int countSuper(@Param("supplierId") Long supplierId, @Param("q") String q, @Param("groupType") String groupType, @Param("isGroup") Boolean isGroup);

	List<YgGroup> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("supplierId") Long supplierId, @Param("q") String q,
			@Param("groupType") String groupType, @Param("isGroup") Boolean isGroup);

	List<YgGroup> selectHoutaiSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("supplierId") Long supplierId, @Param("q") String q,
			@Param("groupType") String groupType, @Param("isGroup") Boolean isGroup);

	int selectMaxGroupCode();

	int selectByName(@Param("name") String name, @Param("id") Long id, @Param("groupType") String groupType);
}